package test;

import lime2.Location;
import sagroup.dracots.DracoTS;
import sagroup.dracots.DracoTuple;

public class RdgAgent implements Runnable {
	public void run() {
		DracoTS dts = DracoTS.get("testing");
		DracoTuple template = DracoTuple.createMatchAllRemoteTemplate(Location.build("localhost", 30000));
		
		DracoTuple[] rets = dts.rdg(template);
		if (rets != null) {
			for(DracoTuple dt : rets){
				System.out.println("RdgAgent has read tuple with vid: " + dt.getVID());
			}
		}
		System.out.println("RdgAgent finished!");
	}
}
